package com.sxdz.constant

/**
 *  2015/6/23.
 * 获取配置文件值
 */
class GlobalConstant {

    private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle("global");

    /**
     * 获取属性值
     * @author 张斌
     * @param key
     * @return
     */
    public static String getString(String key) {
        try {
            return RESOURCE_BUNDLE.getString(key);
        } catch (MissingResourceException e) {
            return key;
        }
    }
}
